using System;
using System.Windows.Controls;
using System.Windows.Input;

namespace Kaxaml.Plugins.Printing
{
	[Plugin(
			Name = "Print",
			Icon = "Images\\icon.png",
			Description = "Prints a xaml document (Ctrl+Shift+P)",
			ModifierKeys = ModifierKeys.Control | ModifierKeys.Shift,
			Key = Key.P
	 )]
	public partial class PrintPlugin : UserControl
	{
		public PrintPlugin()
		{
			InitializeComponent();
			this.Loaded += (sender, e) =>
			{
				var contractService = new KaxamlContractService();
				print.ViewModel.RegisterContractService(contractService);
			};
		}
	}
}